package com.liyuci.core.properties;

import lombok.Data;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.test.autoconfigure.properties.PropertyMapping;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 
 * @author liyuci
 * @date 2018-02-04 22:44:18
 */

@Data
@Configuration
@ConfigurationProperties(prefix = "xxx")
@PropertySource(value = "classpath:xxx.properties", encoding = "UTF-8")
public class XxxProperties {

	private String name;
	private Integer age;
	private String sex;
}
